<?php
register_sidebar( array(
		'name' => __( 'Main Sidebar' ),
		'before_widget' => '<div id="%1$s" class="widget-container %2$s">',
		'after_widget' => '</div>',
		'before_title' => '<h3 class="widget-title">',
		'after_title' => '</h3>',
	) );

add_theme_support('post-thumbnails');
if ( function_exists('add_theme_support') ) {
    add_theme_support('post-thumbnails');
}
register_nav_menus( array(
	'primary-menu' => 'Main menu',
) );
add_rewrite_rule( 'san-pham/page/([0-9]+)/?$', 'index.php?pagename=san-pham&paged=$matches[1]', 'top' );  
function custom_excerpt_length( $length ) {
	return 15;
}
add_filter( 'excerpt_length', 'custom_excerpt_length', 999 );
function new_excerpt_more( $excerpt ) {
	return str_replace( '[...]', '...', $excerpt );
}
add_filter( 'wp_trim_excerpt', 'new_excerpt_more' );